import { City } from '@/interface/home';

export const idCardPattern = /^[1-9]\d{5}(?:18|19|20)\d{2}(?:0[1-9]|1[0-2])(?:0[1-9]|[12]\d|3[01])\d{3}[\dxX]$/;

export const cityData: City[] = [
  {
    code: '370283',
    name: '平度市',
    pcode: '3702',
    children: [
      {
        code: '370283002',
        name: '李园街道',
        pcode: '370283',
        children: [
          {
            code: '370283002008',
            name: '柳行头社区',
            pcode: '370283002',
            children: [
              {
                code: '370283002008001',
                name: '平度市李园街道柳行头社区股份经济合作社',
                pcode: '370283002008'
              },
              {
                code: '370283002008000',
                name: '柳行头社区',
                pcode: '370283002008'
              }
            ]
          }
        ]
      },

      {
        code: '370283007',
        name: '东阁街道',
        pcode: '370283',
        children: [
          {
            code: '370283007001',
            name: '后巷子社区',
            pcode: '370283007',
            children: [
              {
                code: '370283007001000',
                name: '后巷子社区',
                pcode: '370283007001'
              },
              {
                code: '370283007001S01',
                name: '平度市东阁街道后巷子社区股份经济合作社',
                pcode: '370283007001'
              }
            ]
          },

          {
            code: '370283007208',
            name: '金平山村',
            pcode: '370283007',
            children: [
              {
                code: '370283007208000',
                name: '金平山村',
                pcode: '370283007208'
              },
              {
                code: '370283007208S01',
                name: '平度市东阁街道四十里堡村经济合作社',
                pcode: '370283007208'
              },
              {
                code: '370283007208S02',
                name: '平度市东阁街道下袁家村经济合作社',
                pcode: '370283007208'
              },
              {
                code: '370283007208S03',
                name: '平度市东阁街道五甲村经济合作社',
                pcode: '370283007208'
              },
              {
                code: '370283007208S04',
                name: '平度市东阁街道姜家屯村经济合作社',
                pcode: '370283007208'
              },
              {
                code: '370283007208S05',
                name: '平度市东阁街道湾头村经济合作社',
                pcode: '370283007208'
              },
              {
                code: '370283007208S06',
                name: '平度市东阁街道东杨家庄村经济合作社',
                pcode: '370283007208'
              },
              {
                code: '370283007208S07',
                name: '平度市东阁街道水石埠村经济合作社',
                pcode: '370283007208'
              },
              {
                code: '370283007208S08',
                name: '平度市东阁街道东方家岭村经济合作社',
                pcode: '370283007208'
              },
              {
                code: '370283007208S09',
                name: '平度市东阁街道西方家岭村经济合作社',
                pcode: '370283007208'
              }
            ]
          }
        ]
      }
    ]
  }
];
